package com.example.app.components.MyProgressIndicator

import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.MaterialTheme
import androidx.compose.material.contentColorFor
import androidx.compose.material.pullrefresh.PullRefreshIndicator
import androidx.compose.material.pullrefresh.PullRefreshState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color

@OptIn(ExperimentalMaterialApi::class)
@Composable
fun MyPullRefreshIndicator(
        refreshing: Boolean,
        state: PullRefreshState,
        modifier: Modifier = Modifier,
        backgroundColor: Color = MaterialTheme.colors.surface,
        contentColor: Color = contentColorFor(backgroundColor),
        scale: Boolean = false
) {
    PullRefreshIndicator(
        refreshing,
        state,
        modifier,
        backgroundColor,
        contentColor,
        scale,
    )
}